package com.hcw.blog.base.enumdata;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum  ExceptionCodeEnum {
    /*+++++++++++++++++++++++基础错误码++++++++++++++++++++++++*/
    SUCCESS("200", "请求成功"),
    FAIL("500", "操作失败"),
    NOT_FOUNT("404", "路径不存在，请检查路径是否正确"),
    LOGIN_INVALID("403", "登录失效"),
    PARAMS_INVALID("400", "请求参数异常"),
    UNAUTHORIZED("510", "只有管理员才能操作哦～"),
    /*+++++++++++++++++++++++基础错误码++++++++++++++++++++++++*/


    /*+++++++++++++++++++++++请求频繁++++++++++++++++++++++++*/
    REPEAT_SUBMIT("409", "提交成功！请勿重复提交"),
    /*+++++++++++++++++++++++请求频繁++++++++++++++++++++++++*/
    ;

    private final String code;
    private final String msg;
}
